home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 80 / XENIATGM80.iso / Goodies / Blood 2 / Source / data.z / MenuMouse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-02  |  1.4 KB  |  52 lines

  1. // MenuMouse.h: interface for the CMenuMouse class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_MENUMOUSE_H__E67EB5D2_6855_11D2_BDAE_0060971BDC6D__INCLUDED_)
  6. #define AFX_MENUMOUSE_H__E67EB5D2_6855_11D2_BDAE_0060971BDC6D__INCLUDED_
  7.  
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11.  
  12. #include "MenuBase.h"
  13.  
  14. class CMenuMouse : public CMenuBase  
  15. {
  16. public:
  17.     CMenuMouse();
  18.     virtual ~CMenuMouse();
  19.  
  20.     // Build the menu
  21.     void    Build();            
  22.  
  23.     void    OnFocus(DBOOL bFocus);
  24.  
  25. protected:
  26.     // Load/Save the mouse settings to the .CFG file
  27.     void    LoadMouseSettings();
  28.     void    SaveMouseSettings();
  29.     
  30.     // Sets the inputrate text based on the current input rate
  31.     void    SetInputRateText();
  32.  
  33.     // Override left and right controls
  34.     void    OnLeft();
  35.     void    OnRight();
  36.  
  37. protected:
  38.     int        m_nMouseSensitivity;            // Mouse sensitivity
  39.     int        m_nInputRate;                    // Inputrate
  40.     DBOOL    m_bInvertYAxis;                    // Invert the Y axis
  41.     DBOOL    m_bMouseLook;                    // Full-time mouse look
  42.     DBOOL    m_bLookSpring;                    // Look spring
  43.     DBOOL    m_bUseWheel;                    // If enabled bind weapon changes to wheel
  44.     DBOOL    m_bOrigUseWheel;                // original value of UseWheel
  45.  
  46.     CLTGUISliderCtrl    *m_pInputRateCtrl;    // The inputrate slider control
  47.  
  48.     DDWORD    OnCommand(DDWORD dwCommand, DDWORD dwParam1, DDWORD dwParam2);
  49. };
  50.  
  51. #endif // !defined(AFX_MENUMOUSE_H__E67EB5D2_6855_11D2_BDAE_0060971BDC6D__INCLUDED_)
  52.